import request from '@/sheep/request';

export default {
	// 注册
	register: (data) =>
	  request({
	    url: 'api/user/register',
	    method: 'POST',
	    data,
	    custom: {
				showLoading: false,
				showError: false,
	    },
	  }),
	
   // 账号登录
   userLogin: (data) =>
     request({
       url: 'api/user/login',
       method: 'POST',
       data,
       custom: {
			showLoading: false,
			showError: false,
       },
     }),
	// 重置密码/
	resetpwd: (data) =>
	  request({
	    url: 'api/user/resetpwd',
	    method: 'POST',
	    data,
	    custom: {
				showLoading: false,
				showError: false,
	    },
	}),
    // 发送短信/api/sms/send
	send: (data) =>
	  request({
	    url: 'api/sms/send',
	    method: 'POST',
	    data,
	    custom: {
				showLoading: false,
				showError: false,
	    },
	}),
	// 修改密码
	editpwd: (data) =>
	  request({
	    url: 'api/user/editpwd',
	    method: 'POST',
	    data,
	    custom: {
				showLoading: false,
				showError: false,
	    },
	}),
	// 修改会员个人信息
	profile: (data) =>
	  request({
	    url: 'api/user/profile',
	    method: 'POST',
	    data,
	    custom: {
				showLoading: false,
				showError: false,
	    },
	}),
	// 修改手机号
	changemobile: (data) =>
	  request({
	    url: 'api/user/changemobile',
	    method: 'POST',
	    data,
	    custom: {
				showLoading: false,
				showError: false,
	    },
	}),
	
};
